package com.jian.java.fallback;

import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Jiange
 * @create 2021-06-04-20:40
 */
public class MyFallback {
    public static String handler(@PathVariable(value = "id",required = false) int id,Exception e){
        return "报的错误是 --------O(∩_∩)O-------------------"+e.getMessage();
    }
}
